package io.hepu.robotize.security;

import org.apache.shiro.authc.AuthenticationToken;

public class JwtToken implements AuthenticationToken {
    // 认证密钥
    private final String token;

    // 认证平台
    private final String authzPlatform;

    public JwtToken(String token, String authzPlatform) {
        this.token = token;
        this.authzPlatform = authzPlatform;
    }

    public String getAuthzPlatform() {
        return authzPlatform;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
